package com.xiangty.mapper;

import com.xiangty.bean.CustTemp;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface CustTempMapper {

    void saveCustTemp(CustTemp custTemp);

    CustTemp getCustTemp(CustTemp custTemp);

//    @Select("select * from t_cust_temp where id BETWEEN #{fromId} and #{toId} ")
//    List<CustTemp> selectPartitionList2(@Param("fromId") String fromId, @Param("toId") String toId);
//
//    List<CustTemp> selectPartitionList(@Param("params")Map<String ,Object> params);
    List<CustTemp> selectPartitionList3();

    /**
     * 查看最大最小id用于分页
     */
    Map<String, Object> selectTempStatisticData();

}
